//
// Created by kaifamiao on 2022/3/18.
//
#include<iostream>
struct Stock{
    unsigned int stock_date ;
    unsigned int stock_open ;
    unsigned int stock_high ;
    unsigned int stock_low;
    unsigned int stock_close ;
    unsigned int stock_amount ;
    unsigned int stock_vol ;
    unsigned int stock_reservation ;
};

#define K " "
#define KK "  "
#define KKK "   "
#define KKKK "    "
#define KKKKKK "      "
#ifndef READ_TDX_PRINTSTYLE_H
#define READ_TDX_PRINTSTYLE_H
void color(int a)
{
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY | a);
}
void printff(Stock s,int x){
    if(x>0 && x<=3){
        std::cout << KKKKKK<< s.stock_date<< std::endl;
    }

}
#endif //READ_TDX_PRINTSTYLE_H


#define RESET "\033[0m"
#define BLACK "\033[30m"   /* Black */
#define RED "\033[31m"    /* Red */
#define GREEN "\033[32m"   /* Green */
#define YELLOW "\033[33m"   /* Yellow */
#define BLUE "\033[34m"   /* Blue */
#define MAGENTA "\033[35m"   /* Magenta */
#define CYAN "\033[36m"    /* Cyan */
#define WHITE "\033[37m"   /* White */

#define BOLDBLACK "\033[1m\033[30m"   /* Bold Black */
#define BOLDRED "\033[1m\033[31m"   /* Bold Red */
#define BOLDGREEN "\033[1m\033[32m"  /* Bold Green */
#define BOLDYELLOW "\033[1m\033[33m"  /* Bold Yellow */
#define BOLDBLUE "\033[1m\033[34m"   /* Bold Blue */
#define BOLDMAGENTA "\033[1m\033[35m"   /* Bold Magenta */
#define BOLDCYAN "\033[1m\033[36m"  /* Bold Cyan */
#define BOLDWHITE "\033[1m\033[37m"   /* Bold White */

//int main()
//{
//    std::cout << RED << "Red Color" << RESET << std::endl;
//    std::cout << GREEN << "Green Color" << RESET << std::endl;
//
//    std::cout << BOLDRED << "Blod Red Color" << RESET << std::endl;
//    std::cout << BOLDGREEN << "Blod Green Color" << RESET << std::endl;
//    return 0;
//}